import Vue from "vue";
import VueRouter from "vue-router";
import Home from "../views/Home.vue";
<<<<<<< HEAD
import Jingxuan from "../views/Jingxuan.vue"
=======
<<<<<<< HEAD
import Jingxuan from "../views/Jingxuan.vue"

Vue.use(VueRouter);

const routes = [
  {
    path: "/home",
    name: "Home",
    component: Home,
  },
  {
    path: "/",
    name: "Jingxuan",
    component: Jingxuan,
  },
  {
    path: "/about",
    name: "About",
    // route level code-splitting
    // this generates a separate chunk (about.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
    component: () =>
      import(/* webpackChunkName: "about" */ "../views/About.vue"),
  },
=======
import Login from "../views/Login.vue";
Vue.use(VueRouter);

const routes = [{
        path: "/",
        name: "Home",
        redirect: "/home/select",
        component: Home,
    },
    {
        path: "/home",
        name: "Home",
        component: Home,
        children: [{
                path: "select",
                // component: Select,
                component: () =>
                    import ("../components/Select.vue")
            },
            {
                path: "drama",
                component: () =>
                    import ("../components/Drama.vue"),
            },
            {
                path: "video",
                component: () =>
                    import ("../components/Video.vue"),
            }
        ]
    },
    {
        path: "/login",
        name: "Login",
        component: Login
    },
>>>>>>> wangxueting

Vue.use(VueRouter);

<<<<<<< HEAD
const routes = [
  {
    path: "/home",
    name: "Home",
    component: Home,
  },
  {
    path: "/",
    name: "Jingxuan",
    component: Jingxuan,
  },
  {
    path: "/about",
    name: "About",
    // route level code-splitting
    // this generates a separate chunk (about.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
    component: () =>
      import(/* webpackChunkName: "about" */ "../views/About.vue"),
  },
=======
    {
        path: "/about",
        name: "About",
        // route level code-splitting
        // this generates a separate chunk (about.[hash].js) for this route
        // which is lazy-loaded when the route is visited.
        component: () =>
            import ( /* webpackChunkName: "about" */ "../views/About.vue"),
    },
>>>>>>> 00ff8a823abae1a765e57dfc6ebe39cce0acbefb
>>>>>>> wangxueting
];

const router = new VueRouter({
  routes,
});

export default router;
